package edu.pku.hawk.controller.util;

public class DetectorInfo {

	public final String id;
	public final int type;
	public final String sName;
	public final String tName;
	public int x;
	public int y;
	public int x1; // If it is infrared, then <x,y> and <x1,y1> is the location
					// of one sensor pair. Otherwise, <x1,y1> is always <0,0>.
	public int y1;

	public DetectorInfo(String id, String sName, String tName, int type, int x, int y) {
		this.id = id;
		this.type = type;
		this.sName = sName;
		this.tName = tName;
		this.x = x;
		this.y = y;
	}

	public DetectorInfo(String id, String sName, String tName, int type, int x, int y, int x1, int y1) {
		this.id = id;
		this.type = type;
		this.sName = sName;
		this.tName = tName;
		this.x = x;
		this.y = y;
	}
}
